<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../include/admincontent.jsp" %>

<link rel="stylesheet" type="text/css"
      href="${pageContext.request.contextPath}/resources/bishi/lib/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css"
      href="${pageContext.request.contextPath}/resources/bishi/style/knowlegPoints.css"/>

<body>
<div class="add-topic">
    <div id="location">当前位置：首页 &gt; 题目设计 &gt; 编辑题目</div>
    <div id="content">
        <div class="layui-tab">
            <ul class="layui-tab-title">
                <li class="layui-this">单选选择题</li>
                <li>不定项选择题</li>
                <li>填空题</li>
                <li>判断正误题</li>
                <li>简答题</li>
                <li>综合题</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="btnbar">
                        <button class="save" id="addTopicSaveSingle">
                            <em class="ico16 save_traft_16"></em>
                            <span class="menu_span" title="保存">保存</span>
                        </button>
                        <button class="back" onclick="location='/TopicManager/';">
                            <em class="ico16 cancle_publish_16"></em>
                            <span class="menu_span" title="返回">返回</span>
                        </button>
                    </div>
                    <div class="table-cont">
                        <form class="layui-form" action="" id="addTopicFormSingle">
                            <table class="treeTable inputform" cellpadding="0" cellspacing="0" width="100%">
                                <tbody>
                                <tr>
                                    <td>知 识 点：<input type="hidden" name="k" datatype="*" nullmsg="知识点不能为空！"></td>
                                    <td name="td_knowledge"><span class="qkadd"></span>
                                        <input type="hidden" name="name"/>
                                        <input type="hidden" name="knowname"/></td>

                                </tr>
                                <tr>
                                    <td width="100">题目难度：</td>
                                    <td>
                                        <select name="level" datatype="*" nullmsg="难度不能为空！" class="level-select">
                                            <option value="0">低难度</option>
                                            <option value="1">中难度</option>
                                            <option value="2">高难度</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>题目内容：</td>
                                    <td style="padding:10px 5px;">
                                        <div class="htmleditor">
                                            <textarea id="myEditor1" name="conts" datatype="*" nullmsg="题目内容不能为空！"
                                                      style="width:100%;height:260px;"></textarea>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>题目选项：</td>
                                    <td>
                                        <div class="questions">
                                            <div class="float-left">
                                                <input type="radio" name="answer" value="A" title="A"
                                                       class="radio-input">
                                            </div>
                                            <div class="txt float-left"><input type="text" datatype="*"
                                                                               nullmsg="选项内容不能为空！"
                                                                               style="width: 573px;"></div>
                                            <div class="btn float-left">
                                                <button type="button" class="add"></button>
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                        <div class="questions">
                                            <div class="float-left">
                                                <input type="radio" name="answer" value="B" title="B"
                                                       class="radio-input">
                                            </div>
                                            <div class="txt float-left"><input type="text" datatype="*"
                                                                               nullmsg="选项内容不能为空！"
                                                                               style="width: 573px;"></div>
                                            <div class="clear"></div>
                                        </div>
                                        <div class="questions">
                                            <div class="float-left">
                                                <input type="radio" name="answer" value="C" title="C"
                                                       class="radio-input">
                                            </div>
                                            <div class="txt float-left"><input type="text" datatype="*"
                                                                               nullmsg="选项内容不能为空！"
                                                                               style="width: 573px;"></div>
                                            <!-- 这是删除按钮样式 start -->
                                            <div class="btn float-left">
                                                <button type="button" class="del"></button>
                                            </div>
                                            <!-- 这是删除按钮样式 end -->
                                            <div class="clear"></div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>题目解析：</td>
                                    <td><textarea name="Analysis" class="explanation"></textarea></td>
                                </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="layui-tab-item">
                    <div class="btnbar">
                        <button class="save" id="addTopicSaveMulti">
                            <em class="ico16 save_traft_16"></em>
                            <span class="menu_span" title="保存">保存</span>
                        </button>
                        <button class="back" onclick="location='/TopicManager/';">
                            <em class="ico16 cancle_publish_16"></em>
                            <span class="menu_span" title="返回">返回</span>
                        </button>
                    </div>
                    <form class="layui-form" action="" id="addTopicFormMulti">
                        <table class="treeTable inputform" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                            <tr>
                                <td>知 识 点：<input type="hidden" name="k" datatype="*" nullmsg="知识点不能为空！"></td>
                                <td name="td_knowledge"><span class="qkadd"></span>
                                    <input type="hidden" name="name"/>
                                    <input type="hidden" name="knowname"/></td>
                            </tr>
                            <tr>
                                <td width="100">题目难度：</td>
                                <td>
                                    <select name="level" datatype="*" nullmsg="难度不能为空！" class="level-select">
                                        <option value="0">低难度</option>
                                        <option value="1">中难度</option>
                                        <option value="2">高难度</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td width="100">题目内容：</td>
                                <td style="padding:10px 5px;">
                                    <div class="htmleditor">
                                        <textarea id="myEditor2" name="conts" datatype="*" nullmsg="题目内容不能为空！"
                                                  style="width:100%;height:260px;"></textarea>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>题目选项：</td>
                                <td>
                                    <div class="questions">
                                        <div class="float-left">
                                            <input type="checkbox" name="answer" value="A" title="A" class="radio-input"
                                                   lay-skin="primary">
                                        </div>
                                        <div class="txt float-left"><input type="text" datatype="*" nullmsg="选项内容不能为空！"
                                                                           style="width: 573px;"></div>
                                        <div class="btn float-left">
                                            <button type="button" class="addM"></button>
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="questions">
                                        <div class="float-left">
                                            <input type="checkbox" name="answer" value="B" title="B" class="radio-input"
                                                   lay-skin="primary">
                                        </div>
                                        <div class="txt float-left"><input type="text" datatype="*" nullmsg="选项内容不能为空！"
                                                                           style="width: 573px;"></div>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="questions">
                                        <div class="float-left">
                                            <input type="checkbox" name="answer" value="C" title="C" class="radio-input"
                                                   lay-skin="primary">
                                        </div>
                                        <div class="txt float-left"><input type="text" datatype="*" nullmsg="选项内容不能为空！"
                                                                           style="width: 573px;"></div>
                                        <div class="clear"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>题目解析：</td>
                                <td><textarea name="Analysis" class="explanation"></textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
                <div class="layui-tab-item">
                    <div class="btnbar">
                        <button class="save" id="addTopicSaveBlank">
                            <em class="ico16 save_traft_16"></em>
                            <span class="menu_span" title="保存">保存</span>
                        </button>
                        <button class="back" onclick="location='/TopicManager/';">
                            <em class="ico16 cancle_publish_16"></em>
                            <span class="menu_span" title="返回">返回</span>
                        </button>
                    </div>
                    <form class="laui-form" action="" id="addTopicFormBlank">
                        <table class="treeTable inputform" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                            <tr>
                                <td>知 识 点：<input type="hidden" name="k" datatype="*" nullmsg="知识点不能为空！"></td>
                                <td name="td_knowledge"><span class="qkadd"></span>
                                    <input type="hidden" name="name"/>
                                    <input type="hidden" name="knowname"/></td>
                            </tr>
                            <tr>
                                <td width="100">题目难度：</td>
                                <td>
                                    <select name="level" datatype="*" nullmsg="难度不能为空！" class="level-select">
                                        <option value="0">低难度</option>
                                        <option value="1">中难度</option>
                                        <option value="2">高难度</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>题目内容：</td>
                                <td style="padding:10px 5px;">
                                    <div class="htmleditor">
                                        <textarea id="myEditor3" name="conts" datatype="*" nullmsg="题目内容不能为空！"
                                                  style="width:100%;height:260px;"></textarea>
                                    </div>
                                    <p class="tishi">需要填空的部分，请用“[1]、[2]、[3]...”代替</p>
                                </td>
                            </tr>
                            <tr>
                                <td>题目解析：</td>
                                <td><textarea name="Analysis" class="explanation"></textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
                <div class="layui-tab-item">
                    <div class="btnbar">
                        <button class="save" id="addTopicSaveCorr">
                            <em class="ico16 save_traft_16"></em>
                            <span class="menu_span" title="保存">保存</span>
                        </button>
                        <button class="back" onclick="location='/TopicManager/';">
                            <em class="ico16 cancle_publish_16"></em>
                            <span class="menu_span" title="返回">返回</span>
                        </button>
                    </div>
                    <form class="layui-form" action="" id="addTopicFormCorr">
                        <table class="treeTable inputform" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                            <tr>
                                <td>知 识 点：<input type="hidden" name="k" datatype="*" nullmsg="知识点不能为空！"></td>
                                <td name="td_knowledge"><span class="qkadd"></span>
                                    <input type="hidden" name="name"/>
                                    <input type="hidden" name="knowname"/></td>
                            </tr>
                            <tr>
                                <td width="100">题目难度：</td>
                                <td>
                                    <select name="level" datatype="*" nullmsg="难度不能为空！" class="level-select">
                                        <option value="0">低难度</option>
                                        <option value="1">中难度</option>
                                        <option value="2">高难度</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>题目内容：</td>
                                <td style="padding:10px 5px;">
                                    <div class="htmleditor">
                                        <textarea id="myEditor4" name="conts" datatype="*" nullmsg="题目内容不能为空！"
                                                  style="width:100%;height:260px;"></textarea>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>题目答案：</td>
                                <td>
                                    <div class="layui-input-block no-margin">
                                        <input type="radio" name="answer" value="正确" title="正确">
                                        <input type="radio" name="answer" value="错误" title="错误">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>题目解析：</td>
                                <td><textarea name="Analysis" class="explanation"></textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
                <div class="layui-tab-item">
                    <div class="btnbar">
                        <button class="save" id="addTopicSaveSaq">
                            <em class="ico16 save_traft_16"></em>
                            <span class="menu_span" title="保存">保存</span>
                        </button>
                        <button class="back" onclick="location='/TopicManager/';">
                            <em class="ico16 cancle_publish_16"></em>
                            <span class="menu_span" title="返回">返回</span>
                        </button>
                    </div>
                    <form action="" id="addTopicFormSaq">
                        <table class="treeTable inputform" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                            <tr>
                                <td>知 识 点：<input type="hidden" name="k" datatype="*" nullmsg="知识点不能为空！"></td>
                                <td name="td_knowledge"><span class="qkadd"></span>
                                    <input type="hidden" name="name"/>
                                    <input type="hidden" name="knowname"/></td>
                            </tr>
                            <tr>
                                <td width="100">题目难度：</td>
                                <td>
                                    <select name="level" datatype="*" nullmsg="难度不能为空！" class="level-select">
                                        <option value="0">低难度</option>
                                        <option value="1">中难度</option>
                                        <option value="2">高难度</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>题目内容：</td>
                                <td style="padding:10px 5px;">
                                    <div class="htmleditor">
                                    <textarea id="myEditor5" name="conts" datatype="*" nullmsg="题目内容不能为空！"
                                              style="width:100%;height:260px;"></textarea>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>题目解析：</td>
                                <td><textarea name="Analysis" class="explanation"></textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
                <div class="layui-tab-item">
                    <div class="btnbar">
                        <button class="save" id="addTopicSaveComp">
                            <em class="ico16 save_traft_16"></em>
                            <span class="menu_span" title="保存">保存</span>
                        </button>
                        <button class="back" onclick="location='/TopicManager/';">
                            <em class="ico16 cancle_publish_16"></em>
                            <span class="menu_span" title="返回">返回</span>
                        </button>
                    </div>
                    <form action="" id="addTopicFormComp">
                        <table class="treeTable inputform" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                            <tr>
                                <td>知 识 点：<input type="hidden" name="k" datatype="*" nullmsg="知识点不能为空！"></td>
                                <td name="td_knowledge"><span class="qkadd"></span>
                                    <input type="hidden" name="name"/>
                                    <input type="hidden" name="knowname"/></td>
                            </tr>
                            <tr>
                                <td width="100">题目难度：</td>
                                <td>
                                    <select name="level" datatype="*" nullmsg="难度不能为空！" class="level-select">
                                        <option value="0">低难度</option>
                                        <option value="1">中难度</option>
                                        <option value="2">高难度</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>题目内容：</td>
                                <td style="padding:10px 5px;">
                                    <div class="htmleditor">
                                    <textarea id="myEditor6" name="conts" datatype="*" nullmsg="题目内容不能为空！"
                                              style="width:100%;height:260px;"></textarea>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>题目解析：</td>
                                <td><textarea name="Analysis" class="explanation"></textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="select-konwleg" class="other-page">
    <div class="btnbar">
        <button class="save" id="addKnowButton">
            <em class="ico16 save_traft_16"></em>
            <span class="menu_span" title="保存">保存</span>
        </button>
    </div>
    <!-- 筛选条件 -->
    <div>
        <form id="positionSearchbox" action="">
            <table width="100%" class="treeTable searchform" cellpadding="0" cellspacing="0">
                <thead>
                <tr>
                    <td width="60">知识点：</td>
                    <td width="180">
                        <select name="zid">
                            <option value="102">2016年“安全生产月”安全法规知识网络竞赛</option>
                            <option value="103">车辆</option>
                            <option value="104">站务安全员</option>
                        </select>
                    </td>
                    <td width="60">关键字：</td>
                    <td width="140"><input type="text" name="key" class="search-input" placeholder="请输入关键字"></td>
                    <td>
                        <button id="searchbtn" type="button" class="search">
                            <em class="ico16 search_16"></em>
                            <span class="menu_span" title="查询">查询</span>
                        </button>
                    </td>
                </tr>
                </thead>
            </table>
        </form>
    </div>
    <table id="selectKnowTable" lay-filter="selectKnowTable"></table>
</div>

<script type="text/javascript"
        src="${pageContext.request.contextPath}/resources/bishi/lib/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/bishi/lib/layui/layui.js"></script>
<script charset="utf-8"
        src="${pageContext.request.contextPath}/resources/bishi/lib/kindeditor-4.1.10/kindeditor-min.js"></script>
<script charset="utf-8"
        src="${pageContext.request.contextPath}/resources/bishi/lib/kindeditor-4.1.10/lang/zh_CN.js"></script>
<script type="text/javascript">
    document.topic = ${topicJson}
</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/bishi/js/editTopic.js"></script>

</body>

</html>